package wavenotes.model.presentation;

import java.util.Date;

/**
 * Not meant to be persisent right now...
 */
public class Note implements Comparable<Note>{
	private String participantId;
	private String displayName;
	private Date time;
	private String text;
	
	public Note() {
		this(null, null, null, null);
	}
	
	public Note(String participantId, String displayName, Date time, String text) {
		this.participantId = participantId;
		this.displayName = displayName;
		this.time = time;
		this.text = text;
	}
	public String getParticipantId() {
		return participantId;
	}
	public void setParticipantId(String participantId) {
		this.participantId = participantId;
	}
	public String getDisplayName() {
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	
	@Override
	public int compareTo(Note o) {
		return getTime().compareTo(o.getTime());
	}
	
	@Override
	public String toString() {
		return "(" + participantId + ", " + displayName + ", " + time + ", " + text + ")";
	}
}
